package com.kamistoat.meimeistore.modulessystem.service.impl;

import com.kamistoat.meimeistore.commoncore.utils.page.Query;
import com.kamistoat.meimeistore.modulessystem.dao.SysUserPostDao;
import com.kamistoat.meimeistore.modulessystem.service.SysUserPostService;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.meimeistore.commoncore.utils.page.PageUtils;
import com.kamistoat.meimeistore.apisystem.entity.SysUserPostEntity;


@Service("sysUserPostService")
public class SysUserPostServiceImpl extends ServiceImpl<SysUserPostDao, SysUserPostEntity> implements SysUserPostService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysUserPostEntity> page = this.page(
                new Query<SysUserPostEntity>().getPage(params),
                new QueryWrapper<SysUserPostEntity>()
        );

        return new PageUtils(page);
    }

}